<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
         function returnPromise(){
            return new Promise(function(resolve,reject){
                // resolve();
                reject("呵呵");
            });
        }
        returnPromise().then(function(){
            console.log("resolve");
        }).catch(function(error){
            console.log("reject"+error);
        }).finally(function(){
            console.log("这是始终执行的");
        });
    </script>
</head>
<body>
    
</body>
</html>